package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    //新增员工
    void add(EmployeeDTO employeeDTO);

    /*
     * 分页查询*/
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    //员工状态禁用/启用
    void empStatus(Integer status, Long id);

    Employee getEmpById(Long id);

    void updateEmp(EmployeeDTO employeeDTO);
}
